<?php
    session_start();
    /*
    $_SESSION["AccountLogInName"]= $row["LOGIN_NAME"];
		$_SESSION["ADMIN"]= $row["ADMIN_FLAG"];
		$_SESSION["AccountFName"]= $row["FISRT_NAME"];
		$_SESSION["AccountLName"]= $row["LAST_NAME"];
		$_SESSION["LEVELName"]= $row["LEV_NAME"];
		$_SESSION["AccountID"]= $row["ID"];
		$_SESSION["ISLOGIN"]= true;*/
    IF($_SESSION["AccountLogInName"]==null || !$_SESSION["ISLOGIN"] || $_SESSION["AccountID"]==null)
    {
    	if(basename($_SERVER["PHP_SELF"]) != 'LogInPage.php' && basename($_SERVER["PHP_SELF"]) !="SearchSNPage.php")
    	{
    	 	header( "location:LogInPage.php" );
		 	exit(0);
		 }
    }
?>
